Locating Type Errors 123 Required Types TYPE ANALYSER Inferred Types
نویسنده
چکیده
This chapter presents a static diagnosis tool that locates type errors in untyped CLP programs without executing them. The existing prototype is specialised for the programming language CHIP [4.10], but the idea applies to any CLP language. The tool works with approximated speci cations which describe types of procedure calls and successes. The speci cations are expressed as a certain kind of term grammars. The tool automatically locates at compile time all the errors (with respect to a given speci cation) in a program. The located erroneous program fragments are (pre xes of) clauses. The tool aids the user in constructing speci cations incrementally; often a fragment of the speci cation is already suÆcient to locate an error. The presentation is informal. The focus is on the motivation of this work and on the functionality of the tool. Some related formal aspects are discussed in [4.15, 4.29]. The prototype tool is available from http://www.ida.liu.se/ ~pawpi/Diagnoser/diagnoser.html.
منابع مشابه
Better Type-Error Messages Through Lazy Typing
Producing precise and helpful error messages for type inference is still a challenge for implementations of functional languages. Current approaches often lack precision in terms of locating the origins of type errors. Moreover, suggestions for how to fix type errors that are offered by some tools are also often vague or incorrect. To address this problem we have developed a new approach to ide...
متن کاملL2 Teachers’ Explicit and Implicit Corrective Feedback and Its Linguistic Focus
Various studies have confirmed the influential role of corrective feedback (CF) in the development of different linguistic skills and components. However, little, if any, research has been conducted on comparing types of linguistic errors treated by teachers through CF. To bridge this gap, this study sought to investigate the linguistic errors addressed and the types of CF provided by teachers....
متن کاملTHE EFFECT OF TYPE OF SPECIFIC HEATS RATIO OF WORKING FLUID ON THE THERMAL PERFORMANCE OF STANDARD OTTO CYCLE
In thermodynamic analysis of internal combustion engine, the specific heats of working fluid is considered to be constant. Due to specific heats are functions of operation temperature of cycle, this consideration cause to several errors in the thermal analysis. In this paper, standard Otto cycle with three various types of specific heats ratios has been analyzed numerically and effect of these ...
متن کاملType assignment in programming languages
The purpose of this work is to present and study a family of polymorphic type disciplines for programming languages similar to the type discipline of ML, the metalanguage of the LCF system, which are based on the use of type inference systems to define the notion of well typed expressions and programs and on the use of type assignment algorithms to compute the type or types that can be inferred...
متن کاملThe Effect of Written Corrective Feedback on EFL Students\' Writing Accuracy
The present study explores the effect of providing different types of written corrective feedback (WCF) on 79 Iranian EFL learners’ writings over time through a pre-test, immediate post-test and delayed post-test. In this way, the study first aims to investigate the extent to which different types of WCF result in improved accuracy in writing over a period of two months, and then maintain...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2000